package com.itheima.zifu;

import javax.print.DocFlavor;
import java.io.*;
import java.nio.charset.Charset;

/*
缓冲流的特殊方法
 */
public class Demo08 {

    public static void main(String[] args) throws IOException {
        BufferedWriter writer = new BufferedWriter(new FileWriter("day13\\aaa\\abc.txt", Charset.forName("gbk")));
        writer.write("哈哈哈,我最帅");
        writer.newLine();
        writer.write("你放屁");
        writer.write("こんにちは");
        writer.close();
      /*  FileInputStream fis = new FileInputStream("day13\\\\aaa\\\\abc.txt");
        int b;
        while ((b=fis.read())!=-1){
            System.out.println(b);
        }
        fis.close();*/
    }
}
